#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

#define MAX 50

typedef char ElemType;
typedef struct SeqList
{
	ElemType* arr[MAX];
	int length;
}SeqList;

void InitList(SeqList* plist);
bool ListInsert(SeqList* plist, int i, ElemType value);
void DispList(SeqList* plist);
int ListLength(SeqList* plist);
bool ListEmpty(SeqList* plist);
bool GetElem(SeqList* plist, int i, ElemType* value);
int LocateElem(SeqList* plist, ElemType value);
bool ListDelete(SeqList* plist, int i);
void DestroyList(SeqList* plist);